﻿
using System.Linq;
namespace MMS.Model
{
    public partial class MemberInfo
    {
        public MemberInfo ToPOCO(bool self)
        {
            return new MemberInfo()
            {
                MId = this.MId,
                MCardId = this.MCardId,
                MLId = this.MLId,
                MName = this.MName,
                MBalances = this.MBalances,
                MIntegral = this.MIntegral,
                MConsumption = this.MConsumption,
                MBirthday = this.MBirthday,
                MGender = this.MGender,
                MOccupation = this.MOccupation,
                MPhone = this.MPhone,
                MPassword = this.MPassword,
                MAddress = this.MAddress,
                MEmail = this.MEmail,
                MWechat = this.MWechat,
                MRemark = this.MRemark,
                MIsDel = this.MIsDel,
                Level=this.Level.ToPOCO(),
                TradeInfo = this.TradeInfo.Select(o => o.ToPOCO()).ToList()
            };
        }
    }
}
